﻿using System;
using System.Net;
using System.Collections.Generic;

namespace AccessControl.Contracts.Video
{
    public delegate void VideoEventHandler(bool bSuccess);
    public delegate void NewFrameEventHandler(byte[] frameBytes, DateTime timeStamp, int width, int height);

    public interface IVideoPlayer
    {
        bool RequestStartVideo(IPAddress ip, int portNumber);
        bool RequestStopVideo();

        event VideoEventHandler VideoStarted;
        event VideoEventHandler VideoStopped;
        event NewFrameEventHandler NewFrame;
    }
}
